package com.xci.xajtfb.bus.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.github.lvyanyang.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 序列表
 * @author 张谦 765870682@qq.com
 * @since 2021-03-02 9:40:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "序列表")
public class WxSerial extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 日期（yyyyMMdd）
	 */
	@NotBlank(message = "请输入日期")
	@Length(max = 50, message = "日期长度不能超过{max}")
	@ExcelIgnore
	@Excel(name = "日期", width = 20d)
	@ApiModelProperty(value = "日期（yyyyMMdd）", required = true, position = 1)
	private String date;

	/**
	 * 序列号
	 */
	@NotNull(message = "请输入序列号")
	@Excel(name = "序列号", width = 20d)
	@ApiModelProperty(value = "序列号", required = true, position = 2)
	private Integer serial;
}
